<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>



<!--当一行溢出宽度 下面的才会另起一行-->
<div style="width: 100px;background-color: #4cae4c;overflow-x: hidden">
    <p>
        1111111111111111111111111
        22222
        3
    </p>
</div>
</body>
</html>